<?php
defined('BY_JYA') or exit('error');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();

if($_RQ['op']=='get'){
	$return['item']=$this->plugin_setting('setting');
	$return['item']['func1']="cfc('jy_textimage')->text()";
	$return['htmls']=array (
		  'type' => 'edit',
		  'post' => 'post',
		  'edit_tab' => '参数设置',
		  'edits' => 
		  array (
		    0 => 
		    array (
		      'title' => '参数设置',
		      'list' => 
		      array (
				array ('name' => 'appcode','type' => 'string','title' => 'AppCode'),
				array ('name' => 'appkey','type' => 'string','title' => 'appkey'),
				array ('name' => 'appsecret','type' => 'string','title' => 'appsecret'),
				array ('name' => 'func1','type'=>'string','title' => '调用方法为','read'=>true,'help'=>'更多使用方法请参考官方文档：https://market.aliyun.com/products/57124001/cmapi013592.html?spm=5176.78296.1105641.2.rxs1sV#sku=yuncode759200000'),
		      ),
		    ),
		  ),
		);
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();	
	$item=$this->plugin_setting('setting',$postdata);
	exi('设置成功！','','/setting/');
}
?>